package org.lanqiao.tjut.service;

import java.util.List;

import org.apache.commons.dbutils.handlers.BeanListHandler;
import org.lanqiao.tjut.bean.UsersBean;
import org.lanqiao.tjut.dao.DaoFactory;
import org.lanqiao.tjut.db.DBDriverFactory;

public class LoginService {

	/**
	 * 用户登录验证
	 * 
	 * @param uBean
	 *            用户信息实体兑现
	 * @return 查询结果(boolean变量)
	 */
	public boolean isLogined(UsersBean uBean) {
		// 返回验证结果
		return DaoFactory.getLoginDaoInstance().isLogined(uBean);
	}

	/**
	 * 用户登录验证
	 * 
	 * @param uBean
	 *            用户信息实体兑现
	 * @return 查询结果(list集合)
	 */
	public List<UsersBean> isLogined2(UsersBean uBean) {
		return DaoFactory.getLoginDaoInstance().isLogined2(uBean);
	}
}
